package per.chenyl.framework.persistence.test.entity;

import per.chenyl.framework.persistence.entity.anno.Entity;
import per.chenyl.framework.persistence.entity.anno.Id;
import per.chenyl.framework.persistence.entity.anno.NotEmpty;

@Entity("user")
public class User {
    @Id
    private Integer id;
    @NotEmpty(message = "姓名不可为空！")
    private String name;
    private Integer age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}

